﻿@model IEnumerable<JRFinances.ViewModels.Groups.IndexGroupViewModel>

<fieldset>
<legend>Obecna przynaleznosc do grup</legend>
<p></p>
<table>
    <tr>
        <th>
            Nazwa
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(item.Name, "Details", new { id = item.GroupId })
        </td>
        <td>@Html.ActionLink("Opusc", "Leave", new { id = item.GroupId })</td>
    </tr>
}

</table>

</fieldset>

<p>
    @Html.ActionLink("Dolacz do nowej grupy", "Join") | @Html.ActionLink("Zarzadzaj grupami", "ManageOwned") 
</p>
